#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	cout << 
	boost::format("writing %1%,  x=%2% : %3%-th try\n") % "toto" % 40.23 % 50; 

	cout << boost::format("%2% %1%") % 36 % 77;

	boost::format fmt("\n%2%*%1%\n");
	fmt % 888;
	fmt % "hello";

	string s=fmt.str();

	cout<<s;
}
